#include <QCoreApplication>
#include <server.h>

//QTcpSocket *client;

int main(int argc, char *argv[])
{
    QCoreApplication a(argc, argv);

    if(argc<2){
        std::cout<<"Usage: weTalk_server port_number"<<std::endl;
        return 0;
    }
    bool ok;
    QString *port = new QString(argv[1]);
    quint16 uport  = port->toUShort(&ok);

    new Server(0,uport);

    return a.exec();
}
